package com.ruoyi.system.service.report.Impl;

import java.util.List;

import com.ruoyi.system.domain.report.ExamSurvey;
import com.ruoyi.system.mapper.report.ExamSurveyMapper;
import com.ruoyi.system.service.report.IExamSurveyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 随访表Service业务层处理
 *
 * @author jiadun
 * @date 2022-01-03
 */
@Service
public class ExamSurveyServiceImpl implements IExamSurveyService
{
    @Autowired
    private ExamSurveyMapper examSurveyMapper;

    /**
     * 查询随访表
     *
     * @param surveyid 随访表主键
     * @return 随访表
     */
    @Override
    public ExamSurvey selectExamSurveyBySurveyid(Long surveyid)
    {
        return examSurveyMapper.selectExamSurveyBySurveyid(surveyid);
    }

    /**
     * 查询随访表列表
     *
     * @param examSurvey 随访表
     * @return 随访表
     */
    @Override
    public List<ExamSurvey> selectExamSurveyList(ExamSurvey examSurvey)
    {
        return examSurveyMapper.selectExamSurveyList(examSurvey);
    }

    /**
     * 新增随访表
     *
     * @param examSurvey 随访表
     * @return 结果
     */
    @Override
    public int insertExamSurvey(ExamSurvey examSurvey)
    {
        return examSurveyMapper.insertExamSurvey(examSurvey);
    }

    /**
     * 修改随访表
     *
     * @param examSurvey 随访表
     * @return 结果
     */
    @Override
    public int updateExamSurvey(ExamSurvey examSurvey)
    {
        return examSurveyMapper.updateExamSurvey(examSurvey);
    }

    /**
     * 批量删除随访表
     *
     * @param surveyids 需要删除的随访表主键
     * @return 结果
     */
    @Override
    public int deleteExamSurveyBySurveyids(Long[] surveyids)
    {
        return examSurveyMapper.deleteExamSurveyBySurveyids(surveyids);
    }

    /**
     * 删除随访表信息
     *
     * @param surveyid 随访表主键
     * @return 结果
     */
    @Override
    public int deleteExamSurveyBySurveyid(Long surveyid)
    {
        return examSurveyMapper.deleteExamSurveyBySurveyid(surveyid);
    }
}
